package com.ftf.tp.user.domain.action.event;

import com.ftf.tp.common.domain.BaseDomainEvent;
import com.ftf.tp.common.constants.DomainEventEnum;
import com.ftf.tp.common.constants.EventStatusEnum;
import com.ftf.tp.common.core.utils.SnowIdUtils;
import com.ftf.tp.user.domain.action.dos.ActionDO;

import java.time.LocalDateTime;

/**
 * @author tanghao
 * @date 2022/8/29
 */
public class ActionEvent extends BaseDomainEvent<ActionDO> {

    public ActionEvent(ActionDO actionDO) {
        super(SnowIdUtils.uniqueLong(),
                actionDO.getId(),
                DomainEventEnum.ARTICLE_PUBLISH,
                EventStatusEnum.PENDING,
                LocalDateTime.now(),
                actionDO);
    }
}
